package springbook.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springbook.mapper.UserMapper;
import springbook.model.UserInfo;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public UserInfo queryUserInfoByName(String userName) {
        return userMapper.queryUserByName(userName);
    }
}
